/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.ems.entity;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.config.Global;
import com.thinkgem.jeesite.common.constant.Constant;
import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 教师Entity
 * @author zad
 * @version 2018-01-25
 */
public class EmsTeacher extends DataEntity<EmsTeacher> {
	
	private static final long serialVersionUID = 1L;
	private String name;		// 教师姓名
	private String mobile;		// 手机号码
	private EmsDept dept;		// 所属专业
	private String title;		// 职称
	private String type;		// 教师类型
	private String status;		// 是否启用
	
	public EmsTeacher() {
		super();
		this.status = Global.YES;
	}

	public EmsTeacher(String id){
		super(id);
	}

	@Length(min=1, max=64, message="教师姓名长度必须介于 1 和 64 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=0, max=16, message="手机号码长度必须介于 0 和 16 之间")
	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}
	

	public EmsDept getDept() {
		return dept;
	}

	public void setDept(EmsDept dept) {
		this.dept = dept;
	}

	@Length(min=0, max=64, message="职称长度必须介于 0 和 64 之间")
	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}
	
	@Length(min=0, max=2, message="教师类型长度必须介于 0 和 2 之间")
	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
	
	@Length(min=0, max=2, message="是否启用长度必须介于 0 和 2 之间")
	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}
	
}